﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System;
using ScrumTable.BL.DM.Properties;

#endregion

namespace ScrumTable.BL.DM.DataManagement
{
    /// <summary>
    /// Contains a specialized exception illegal workflow state transitions.
    /// </summary>
    public class TransitionNotAllowedException : ArgumentNullException
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the System.TransitionNotAllowedException
        /// class with the name of the parameter that causes this exception.
        /// </summary>
        /// <param name="workflowName">Specifies the name of the workflow which is has raised the illegal transition.</param>
        /// <param name="currentState">Specifies the current workflow state.</param>
        /// <param name="newState">Specifies the new workflow state.</param>
        public TransitionNotAllowedException(string workflowName, ScrumState currentState, ScrumState newState)
            : base(string.Format(Resources.ExcTsnNotAllowed, workflowName, currentState, newState))
        {
        }

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        #endregion
    }
}
